// 控制器，操作对象

const testModel = require('../model/Test')


exports.createTest = async ctx => {
    try {
        await testModel.create({name: ctx.request.body.username , password: ctx.request.body.password})
        ctx.body={
            msg: '注册成功',
            code: 200
        }
        console.log(ctx.request.body.username)
        console.log(ctx.request.body.password)
        console.log(3333)
    } catch (e) {
        console.log(e)
    }

}
